﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServiceLocatorPatternDemo
{
    public interface ILogger
    {
        string WriteMessage(string message);
    }
    public class DemoTextLogger : ILogger
    {
        public string WriteMessage(string message)
        {
            return "DemoTextLogger - '" + message + "'.";
        }
    }
    public class DemoExceptionLogger : ILogger
    {
        public string WriteMessage(string exceptionMessage)
        {
            return "DemoExceptionLogger - '" + exceptionMessage + "'";
        }
    }
}